package myky.com.doctorapp.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import myky.com.doctorapp.R

/**
 * Description:
 * @author wuyangwuyang
 * Created by 2019/2/14 on 17:13
 */
class ListAdapter(date:List<String>) :BaseQuickAdapter<String,BaseViewHolder>(R.layout.list_adapter_item,date){
    override fun convert(helper: BaseViewHolder?, item: String?) {

        helper?.let {

            it.setText(R.id.list_item_tv,item)

        }
        helper?.addOnClickListener(R.id.list_item_lin)
    }
}